// pages/order/goods/goods.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    goods: {
      type: Object,
      required: true
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleDetail() {
      const data = {
        visible: true,
        goods: this.properties.goods
      }
      this.triggerEvent('handleDetail', data)
    },
    
    handleGoodsInfo() {
      const data = {
        goodsInfoVisible: true,
        goods: this.properties.goods
      }
      this.triggerEvent('handleGoodsInfo', data)
    }
  }
})